import axios from './index'
//表格数据
export function tableList(data){
    return axios({
        url:"/user/roles/list",
        method:"post",
        data
    });
}
//角色管理列表
// export function roles(){
//     return axios({
//         url:"/user/roles/list",
//         method:"post",
//     })
// }
export function dele(id){
    return axios({
        url:"/user/roles/del",
        method:"post",
        data() {
           id
        },   
    })
}
export function power(){
    return axios({
        url:"/user/roles/actions",
        method:"get",
    })
}
export function poweradd(data){
    return axios({
        url:"/user/roles/save",
        method:"post",
        data
       
   
    })
}
export function editorle(params){
    return axios({
        url:"/user/roles/info",
        method:"get",
        params
    })
}
